<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>fetch</title>
</head>
<body>
    <script>
        //调用 fetch 函数发送 HTTP 请求
        fetch('https://api.apiopen.top/getJoke')
        .then(response => {
            // console.log(response);
            return response.json();
        }).then(response => {
            console.log(response);
        });
    </script>
</body>
</html>